﻿using System.Threading.Tasks;

namespace Dpx.Services {
    /// <summary>
    /// 根导航服务。
    /// </summary>
    public interface IRootNavigationService {
        /// <summary>
        /// 导航。
        /// </summary>
        /// <param name="pageKey">页面键。</param>
        Task NavigateToAsync(string pageKey);

        /// <summary>
        /// 导航。
        /// </summary>
        /// <param name="pageKey">页面键。</param>
        /// <param name="parameter">参数。</param>
        Task NavigateToAsync(string pageKey, object parameter);
    }
}